# iRODS local rules for ARCS sites
# Default-resource must be set appropriately for your site (e.g. arcs-df.vpac.org)
#
#acSetRescSchemeForCreate||msiSetDefaultResc(df.ersa.edu.au,preferred)|nop
acSetRescSchemeForCreate {
    msiSetDefaultResc("df.ersa.edu.au","preferred");
}
#acSetVaultPathPolicy||msiSetGraftPathScheme(no,0)|nop
acSetVaultPathPolicy {
    msiSetGraftPathScheme("no","0");
}
#Access control, trash and quotas
#acAclPolicy|"$userNameClient" != "QuickShare"|msiAclPolicy(STRICT)|nop
acAclPolicy {
    on("$userNameClient" != "QuickShare") {
         msiAclPolicy("STRICT");
    }
}
#acTrashPolicy||nop|nop
acTrashPolicy { }
#acRescQuotaPolicy||msiSetRescQuotaPolicy(off)|nop
acRescQuotaPolicy {msiSetRescQuotaPolicy("off");}
#acSetReServerNumProc||msiSetReServerNumProc(8)|nop
acSetReServerNumProc {msiSetReServerNumProc("8");}

# Rules to stop deletion and moving. Note that for this to work the corresponding rules most be commented in core.irb
#acPreProcForObjRename(*sourceObject,*destObject)|"*sourceObject" like "/ARCS/projects/*/*"|nop|nop
acPreProcForObjRename(*sourceObject,*destObject) {
    on("*sourceObject" like "/ARCS/projects/*/*") {
    }
}
#acPreProcForObjRename(*sourceObject,*destObject)|"*sourceObject" like "/ARCS/trash/*"|nop|nop
acPreProcForObjRename(*sourceObject,*destObject) {
    on("*sourceObject" like "/ARCS/trash/*") {
    }
}
